package com.ddz.qpz.config;

/**
 * @Author: LiQingBo
 * @Date: 2021/10/26-10-26-9:15
 * @Description: com.ddz.qpz
 * @version: 1.0
 */

import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration

public class MQConfig {

    @Bean

    public MessageConverter messageConverter() {

        //json字符串转换器

        return new Jackson2JsonMessageConverter();

    }

}